package com.lap.auth.application.user.command;

import com.lap.framework.validate.annotation.FieldMatch;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@FieldMatch(
    sourceField = "password",
    targetField = "confirmPassword",
    message = "{user.confirmPassword.match}")
@Data
@Schema(description = "更新用户密码命令")
public class UpdatePasswordCmd {

  @NotBlank(message = "{user.password.required}")
  @Schema(description = "用户密码")
  private String password;

  @Schema(description = "用户确认密码")
  private String confirmPassword;
}
